package com.example.w.weather_demo;

import java.util.List;

/**
 * Created by lijianbin on 2017/2/24.
 */

public class WeatherInfo {
    public List<HeWeather5> HeWeather5;

    public static class HeWeather5 {
        /**
         * basic : {"city":"北京","cnty":"中国","id":"CN101010100","lat":"39.904000","lon":"116.391000","update":{"loc":"2017-02-24 15:51","utc":"2017-02-24 07:51"}}
         * daily_forecast : [{"astro":{"mr":"05:14","ms":"15:39","sr":"06:54","ss":"18:00"},"cond":{"code_d":"100","code_n":"100","txt_d":"晴","txt_n":"晴"},"date":"2017-02-24","hum":"46","pcpn":"0.0","pop":"0","pres":"1028","tmp":{"max":"11","min":"-2"},"uv":"3","vis":"10","wind":{"deg":"295","dir":"南风","sc":"微风","spd":"3"}},{"astro":{"mr":"05:56","ms":"16:39","sr":"06:53","ss":"18:01"},"cond":{"code_d":"100","code_n":"100","txt_d":"晴","txt_n":"晴"},"date":"2017-02-25","hum":"45","pcpn":"0.0","pop":"0","pres":"1027","tmp":{"max":"12","min":"-1"},"uv":"3","vis":"10","wind":{"deg":"311","dir":"北风","sc":"微风","spd":"6"}},{"astro":{"mr":"06:34","ms":"17:44","sr":"06:51","ss":"18:02"},"cond":{"code_d":"100","code_n":"100","txt_d":"晴","txt_n":"晴"},"date":"2017-02-26","hum":"44","pcpn":"0.0","pop":"0","pres":"1029","tmp":{"max":"12","min":"-2"},"uv":"3","vis":"10","wind":{"deg":"266","dir":"南风","sc":"微风","spd":"10"}}]
         * status : ok
         */

        public Basic basic;
        public String status;
        public List<DailyForecast> daily_forecast;

        public static class Basic {
            /**
             * city : 北京
             * cnty : 中国
             * id : CN101010100
             * lat : 39.904000
             * lon : 116.391000
             * update : {"loc":"2017-02-24 15:51","utc":"2017-02-24 07:51"}
             */

            public String city;
            public String cnty;
            public String id;
            public String lat;
            public String lon;
            public Update update;

            public static class Update {
                /**
                 * loc : 2017-02-24 15:51
                 * utc : 2017-02-24 07:51
                 */

                public String loc;
                public String utc;
            }
        }

        public static class DailyForecast {
            /**
             * astro : {"mr":"05:14","ms":"15:39","sr":"06:54","ss":"18:00"}
             * cond : {"code_d":"100","code_n":"100","txt_d":"晴","txt_n":"晴"}
             * date : 2017-02-24
             * hum : 46
             * pcpn : 0.0
             * pop : 0
             * pres : 1028
             * tmp : {"max":"11","min":"-2"}
             * uv : 3
             * vis : 10
             * wind : {"deg":"295","dir":"南风","sc":"微风","spd":"3"}
             */

            public Astro astro;
            public Cond cond;
            public String date;
            public String hum;
            public String pcpn;
            public String pop;
            public String pres;
            public Tmp tmp;
            public String uv;
            public String vis;
            public Wind wind;

            public static class Astro {
                /**
                 * mr : 05:14
                 * ms : 15:39
                 * sr : 06:54
                 * ss : 18:00
                 */

                public String mr;
                public String ms;
                public String sr;
                public String ss;
            }

            public static class Cond {
                /**
                 * code_d : 100
                 * code_n : 100
                 * txt_d : 晴
                 * txt_n : 晴
                 */

                public String code_d;
                public String code_n;
                public String txt_d;
                public String txt_n;
            }

            public static class Tmp {
                /**
                 * max : 11
                 * min : -2
                 */

                public String max;
                public String min;
            }

            public static class Wind {
                /**
                 * deg : 295
                 * dir : 南风
                 * sc : 微风
                 * spd : 3
                 */

                public String deg;
                public String dir;
                public String sc;
                public String spd;
            }
        }
    }
}
